﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MainMaster.Master" AutoEventWireup="true" CodeBehind="UserInfoUpdate.aspx.cs" Inherits="OAS.UserInfoUpdate" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder" runat="server">

    <div class="panel panel-primary" style="margin:10px;">
        <asp:Label ID="TitleLabel" runat="server" Text="添加用户" Font-Size="X-Large" style="margin-left:10px;margin-top:30px;"></asp:Label>
        <table class="table" style="margin:10px">
            <tr>
                <th>用户账号：</th>
                <td>
                    <asp:TextBox runat="server" ID="UserAccountTextBox"  CssClass="form-control"></asp:TextBox>
                </td>

                <th>用户名：</th>
                <td>
                    <asp:TextBox runat="server" ID="UserNameTextBox"  CssClass="form-control"></asp:TextBox>
                </td>

                <th>职位：</th>
                <td>
                    <asp:TextBox runat="server" ID="TitleTextBox"  CssClass="form-control"></asp:TextBox>
                </td>
            </tr>

            <tr>
                <th>域：</th>
                <td>
                    <asp:TextBox runat="server" ID="DomainTextBox"  CssClass="form-control"></asp:TextBox>
                </td>

                <th>有效性：</th>
                <td>
                    <asp:CheckBox runat="server" ID="IsActiveCheckBox"  CssClass="form-control"/>                    
                </td>

                <th>邮箱：</th>
                <td>
                    <asp:TextBox runat="server" ID="EmailTextBox" CssClass="form-control"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <th>角色：</th>
                <td>
                    <%-- <input type="checkbox" name="CH_Admin"  value="1"/>系统管理员
                    <input type="checkbox" name="CH_commonlyUser"  value="2"/>一般用户
                    <input type="checkbox" name="CH_Reader"  value="3"/>准备者
                    <input type="checkbox" name="CH_Auditing" value="4"/>审核者
                    <input type="checkbox" name="CH_Test"  value="5"/>测试者--%>

                    <asp:CheckBoxList 
                        ID="chklRole" runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow">
                        <asp:ListItem  Value="1">系统管理员</asp:ListItem>  

                        <asp:ListItem Value="2">一般用户</asp:ListItem>  
                        <asp:ListItem Value="4">准备者</asp:ListItem>  
                        <asp:ListItem Value="5">审核者</asp:ListItem>  
                        <asp:ListItem Value="6">测试者</asp:ListItem>  
                    </asp:CheckBoxList>

                    <%--<asp:CheckBox runat="server" ID="CH_Admin" Text="系统管理员" />  
                    <asp:CheckBox runat="server" ID="CH_commonlyUser" Text="一般用户" />  
                    <asp:CheckBox runat="server" ID="CH_Reader" Text="准备者" />  
                    <asp:CheckBox runat="server" ID="CH_Auditing" Text="审核者" />  
                    <asp:CheckBox runat="server" ID="CH_Test" Text="测试者" />--%>
                </td>
            </tr>
            <tr>
                <th>工厂：</th>
                <td>

                    <asp:CheckBoxList 
                        ID="chklFactory" runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow">
                        <asp:ListItem Value="GEK">GEK</asp:ListItem>
                        <asp:ListItem Value="GES">GES</asp:ListItem>
                        <asp:ListItem Value="GEW">GEW</asp:ListItem>
                        <asp:ListItem Value="GLS">GLS</asp:ListItem>
                    </asp:CheckBoxList>

                   <%-- <asp:CheckBox runat="server" ID="CH_GEK" Text="GEK" />  
                    <asp:CheckBox runat="server" ID="CH_GES" Text="GES" />  
                    <asp:CheckBox runat="server" ID="CH_GEW" Text="GEW" />  
                    <asp:CheckBox runat="server" ID="CH_GLS" Text="GLS" /> --%>
                </td> 
            </tr>
        </table>

        <div style="margin-left:10px">
            <div class="btn-group">
                <asp:Button ID="SaveButton" runat="server" class="btn btn-success green" Text="保存" Style="margin:5px" OnClick="SaveButton_Click" />
                <asp:Button ID="Cancel" runat="server" class="btn btn-info green" Text="取消" Style="margin:5px" OnClientClick="history.go(-1);return false;" CausesValidation="false" /><%--返回上一页（兼容谷歌、火狐、IE）--%>
            </div>
        </div>
    </div>
</asp:Content>

